package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.MessageDao;
import com.platform.entity.MessageEntity;
import com.platform.service.MessageService;

/**
 * 消息通知表Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2019-02-16 18:49:49
 */
@Service("messageService")
public class MessageServiceImpl implements MessageService {
    @Autowired
    private MessageDao messageDao;

    @Override
    public MessageEntity queryObject(Long id) {
        return messageDao.queryObject(id);
    }

    @Override
    public List<MessageEntity> queryList(Map<String, Object> map) {
        return messageDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return messageDao.queryTotal(map);
    }

    @Override
    public int save(MessageEntity tMessage) {
        return messageDao.save(tMessage);
    }

    @Override
    public int update(MessageEntity tMessage) {
        return messageDao.update(tMessage);
    }

    @Override
    public int delete(Long id) {
        return messageDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return messageDao.deleteBatch(ids);
    }
}
